package com.tb.ClassSchedule;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.widget.LinearLayout;
import android.widget.RemoteViews;

public class WidgetDemoAppWidgetProvider extends AppWidgetProvider {

    public static final int CELL_WIDTH  = 200;
    public static final int CELL_HEIGHT = 150;

    private LinearLayout   section;
    private LinearLayout   monday;
    private LinearLayout   tuesday;
    private LinearLayout   wednesday;
    private LinearLayout   thursday;
    private LinearLayout   friday;
    private LinearLayout   saturday;
    private LinearLayout   sunday;
    private LinearLayout[] day;

    private Lesson[][] lessons;








    public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
        final int N = appWidgetIds.length; // Perform this loop procedure for each App Widget that belongs to this provider
        for (int i = 0; i < N; i++) {
            int           appWidgetId   = appWidgetIds[i];
//            Intent        intent        = new Intent();
//            PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
            RemoteViews   views         = new RemoteViews(context.getPackageName(), R.layout.widget_layout);
//            views.setOnClickPendingIntent(R.id.wap_app, pendingIntent);
//            lessons = new LessonSet().getLesson();



            draw();

            appWidgetManager.updateAppWidget(appWidgetId, views);
        }
    }


    private void draw(){



    }




}



